require_dependency 'map_utils'

class CountriesController < ApplicationController
  
  include MapUtils
  #alias for list
  def index
    list
    render :action => :list
  end

  #generates list of countries with ecases connected to them
  def list
    @countries = Country.find_all.reject {|i| i.ecases.empty?}
    @ecases = Ecase.find(:all, :order => "title ASC")
    set_list_map
  end

end